package com.example.his.api.mis.controller.form;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author huixh
 */
@Data
public class UpdateUserForm {

    @NotNull(message = "userId不能为空")
    private Integer userId;
    @NotNull(message = "username不能为空")
    private String username;
    @NotNull(message = "name不能为空")
    private String name;
    @NotNull(message = "sex不能为空")
    private String sex;
    @NotNull(message = "tel不能为空")
    private String tel;
    @NotNull(message = "email不能为空")
    private String email;
    @NotNull(message = "hiredate不能为空")
    private String hiredate;

    @NotEmpty(message = "role不能为空")
    private Integer[] role;
    @Min(value = 1,message = "deptId不能小于1")
    private Integer deptId;
}
